package com.kk.app;

import android.content.Context;
import android.media.MediaPlayer;

import com.kk.app.render.GLThreadManager;
import com.kk.app.render.MVRenderData;
import com.kk.app.utils.EglEnv;

/**
 * @author wk
 * @date 2024/12/25 16:54
 * @describe
 */
public class RenderData {

    private static MVRenderData mMVRenderData = null;

    private static GLThreadManager glThreadManager = null;

    private static MediaPlayer mediaPlayer = null;

    public static void init() {
        mediaPlayer = new MediaPlayer();
        mMVRenderData = new MVRenderData();
        glThreadManager = new GLThreadManager(0, EglEnv.getSharedEGLContext(), mMVRenderData);
        glThreadManager.start();
        glThreadManager.waitUntilStarted();
    }

    public static GLThreadManager getGlThreadManager() {
        return glThreadManager;
    }

    public static MediaPlayer getMediaPlayer() {
        return mediaPlayer;
    }

    public static MVRenderData getmMVRenderData() {
        return mMVRenderData;
    }
}
